﻿using PC.PickleJar.Trello.Domain;
using PC.PickleJar.Trello.Helpers;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PC.PickleJar.Trello.Data.Resources
{
	internal class BoardByIdResource : ResourceBase<TrelloBoard>
	{
		private static readonly String RelativeUriFormat = "boards/{0}";

		private string boardId;

		public BoardByIdResource(string boardId, String developerApiKey, String userToken)
			: base(developerApiKey, userToken)
		{
			this.boardId = boardId;
		}

		public override String RelativeUri
		{
			get
			{
				return String.Format(
					CultureInfo.InvariantCulture,
					BoardByIdResource.RelativeUriFormat,
					this.boardId);
			}
		}
	}
}
